import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import buju from "@/components/buju";
import user from "@/components/user";
import regist from "@/components/regist";
import hero from "@/components/hero";
import newd from "@/components/newd";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/buju',
      name:'/buju',
      component:buju,
      children:[
        {
          path:'/hero',
          name:'/hero',
          component:hero
        }
      ]
    },
    {
      path:'/user',
      name:'/user',
      component:user
    },{
      path:'/regist',
      name:'/regist',
      component:regist
    },
    {
      path:'/newd',
      name:'/newd',
      component:newd
    }
  ]
})
